package org.musicPlayerServer.business.object;

import java.io.File;

public class Music extends Content {

    
    public Music(String file) {
	super(file);
    }
    
    
    
    public String toHtml(String contextPath) {
	return "<a href=\""+contextPath+"?action=play&file="+file.getAbsolutePath()+"\" >"+file.getName()+"</a>";
    }
    
    @Override
    public String toString() {
        return file.getName();
    }

   

}
